#ifndef _STROKE_H
#define _STROKE_H

#include <iostream>
#include <fstream> 
#include <string.h>
#include <list>
#define MAX_LENGHT_STROKE 1000
#define K 100
struct Point2D
{
	float x, y;
	enum PEN_TYPE {PEN_DOWN, PEN_MOVE, PEN_UP };
	PEN_TYPE m_penType;
};

class Stroke
{
protected:
	Point2D m_arrayPoint[MAX_LENGHT_STROKE];
	int n;
	/*
private:
	int countWordInString(char *str, char *strWord);
	int* findPositionInString(char *str, char *strWord, int &iLenArr);
	*/
public:
	void ReadFile(char* strFilePath);
	float std(bool isX_Or_Y);
	float MinX();
	float MinY();
	void Normalize();
	void ReSampleLinear(float d_len); //d_len: distance follow Ox
};

#endif//_STROKE_H